package com.kly.cashmall.module.order.adapter;

import android.graphics.Paint;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kly.cashmall.R;
import com.kly.cashmall.bean.OrderFieldDetailsChildBean;

/**
 * Created by
 * on 2019/5/13.
 */
public class LinkAdapter extends BaseQuickAdapter<OrderFieldDetailsChildBean, BaseViewHolder> {

    public LinkAdapter() {
        super(R.layout.item_general_child_link);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, OrderFieldDetailsChildBean detail) {
        holder.setText(R.id.loan_link,detail.getText());
        ((TextView) holder.getView(R.id.loan_link)).getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
    }
}
